package com.bozhong.robot.bar.barcounter;

import android.app.Application;

import com.xuhao.android.libsocket.sdk.OkSocket;

/**
 * Created by Administrator on 2018/3/4.
 */

public class App extends Application {
    private static App instance;

    public static App getInstance() {
        return instance;
    }
    
    @Override
    public void onCreate() {
        instance = this;
        super.onCreate();
        //在主进程初始化一次,多进程时需要区分主进程.
        OkSocket.initialize(this);
        //如果需要开启Socket调试日志,请配置
        //OkSocket.initialize(this,true);
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
    }
}
